﻿using System.Collections.ObjectModel;

namespace ScanSnap.Domain
{
    [System.Runtime.Serialization.DataContract]
    public class DocumentType
    {
        [System.Runtime.Serialization.DataMember(Name = "id")]
        public string Id { get; set; }

        [System.Runtime.Serialization.DataMember(Name = "content")]
        public string Name { get; set; }

        public bool Selected { get; set; }

        public ObservableCollection<Document> Documents{ get; set; }

        public void Add(Document d)
        {
            if (Documents == null)
                Documents = new ObservableCollection<Document>();

            Documents.Add(d);

        }
    }
}
